package client_gui;


import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.util.Vector;

import javax.swing.DefaultListModel;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;

import client_controllers.CustomerReportsController;
import client_controllers.EmployeeLoginController;
import client_controllers.MarketingManagerController;

import javax.swing.JList;

public class CustomerReportsGUI extends JFrame {
	/**
	 * @class CustomerReportsGUI is used by Marketing Managers to generate customer reports.
	 */

	private JPanel contentPane;
	private JButton btnBack;
	public static DefaultListModel log;
	


	/**
	 * Create the frame.
	 * @param elc 
	 * @param mmc 
	 */
	public CustomerReportsGUI(MarketingManagerController mmc, EmployeeLoginController elc) {
		setTitle("Customer Report");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new BorderLayout(0, 0));
		
		JList list = new JList();
		contentPane.add(list, BorderLayout.CENTER);
		log = new DefaultListModel<>();
		list.setModel(log);
		
		btnBack = new JButton("back");
		contentPane.add(btnBack, BorderLayout.NORTH);
		this.setVisible(true);
		CustomerReportsController crc = new CustomerReportsController(this,elc,mmc);
		
	}


	public JButton getBtnBack() {
		return btnBack;
	}


	public void setBtnBack(JButton btnBack) {
		this.btnBack = btnBack;
	}
}
